import time
from datetime import datetime, timedelta
import akshare as ak

# ETF基金历史行情 - 东财
code = "513180" # 恒生科技指数
start_date = "2019-01-01"
end_date = time.strftime("%Y%m%d", time.localtime())

df = ak.fund_etf_hist_em(symbol=code, start_date=start_date, end_date=end_date, adjust="qfq")
rs = df.describe()
print(rs)

print(rs['最高']['max'])
print(rs['最低']['min'])
